package gbench.mydata.driver.core.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;

import gbench.mydata.driver.core.data.DataBuffer;

/**
 * 数据列表的结果集合运动
 * 
 * @author gbench
 *
 */
public abstract class DataBufferResultSet extends DataBuffer implements ResultSet {

    @Override
    public boolean previous() throws SQLException {
        return this.ops_previous();
    }

    @Override
    public boolean next() throws SQLException {
        return this.ops_next();
    }

    @Override
    public boolean isBeforeFirst() throws SQLException {
        return this.ops_is_before_first();
    }

    @Override
    public boolean isAfterLast() throws SQLException {
        return this.ops_is_after_last();
    }

    @Override
    public boolean isFirst() throws SQLException {
        return this.ops_is_first();
    }

    @Override
    public boolean isLast() throws SQLException {
        return this.ops_is_last();
    }

    @Override
    public void beforeFirst() throws SQLException {
        this.ops_before_first();
    }

    @Override
    public void afterLast() throws SQLException {
        this.ops_after_last();
    }

    @Override
    public boolean first() throws SQLException {
        return this.ops_first();
    }

    @Override
    public boolean last() throws SQLException {
        return ops_last();
    }

    @Override
    public boolean absolute(int row) throws SQLException {
        return this.ops_absolute(row);
    }

    @Override
    public boolean relative(int rows) throws SQLException {
        
        return this.ops_relative(rows);
    }

    @Override
    public int getRow() throws SQLException {
        return this.ops_get_row();
    }

}
